				// 设置起始日期为 2023 年 9 月 29 日
		const startDate = new Date('2023-09-29');
		
		// 定义中文天数
		const chineseDays = ['零', '一', '二', '三', '四', '五', '六', '七', '八', '九', '十'];
		
		function calculateDaysDiff() {
		    // 获取当前日期
		    const currentDate = new Date();
		    
		    // 计算天数差
		    const diffInDays = Math.floor((currentDate - startDate) / (1000 * 60 * 60 * 24));
		    
		    // 更新页面上的天数显示
		    document.getElementById('daysDiff').textContent = `${diffInDays} `;
		    
		    // 转换为中文天数并更新页面
		    let chineseDayStr = '';
		    for (let i = 0; i < String(diffInDays).length; i++) {
		        chineseDayStr += chineseDays[parseInt(String(diffInDays)[i])];
		    }
		    document.getElementById('daysDiffzw').textContent = `${chineseDayStr} `;
		}
		
		// 初次计算并更新天数
		calculateDaysDiff();
		
		// 每隔 1 秒钟更新一次天数
		setInterval(calculateDaysDiff, 1000);
		
		
		window.onload = function () {
            // 1:找到三个元素标签
            var hr = document.getElementById("hr"); //时
            var mn = document.getElementById("mn"); //分
            var sc = document.getElementById("sc"); //秒

            setInterval(function () {
                var date = new Date();
                var HH = (date.getHours() % 12);
                var MM = date.getMinutes();
                var SS = date.getSeconds();
                hr.style.transform = "rotate(" + (HH * 30) + "deg)";
                mn.style.transform = "rotate(" + (MM * 6) + "deg)";
                sc.style.transform = "rotate(" + (SS * 6) + "deg)";
            }, 1000)
        }
		
		
		// 获取按钮和需要显示的元素
		const openButton = document.getElementById('dakai');
		const openButton2 = document.getElementById('guanbi');
		const element = document.querySelector('.andyou');
		
		// 添加点击事件监听器
		openButton.addEventListener('click', () => {
		  element.style.display = 'block'; // 显示元素
		});
		// 添加点击事件监听器
		openButton2.addEventListener('click', () => {
		  element.style.display = 'none'; // 关闭元素
		});